Toggle Incident Report Status
Method: PATCH
/api/v1/incident-reports/{id}/toggle-status
Description
This endpoint toggles the status of a specific incident report. It allows updating the status of the report to one of the predefined values (e.g., "PENDING", "RESOLVED").
🔑 Authentication
This endpoint requires authentication via headers.
| Param | Value | Type |
|---|---|---|
userId | {{userId}} | string |
tenantId | {{tenantId}} | string |
Path Parameter
| Name | Type | Description |
|---|---|---|
id | string | The unique ID of the incident report. |
Request Body
{
"userId": "string",
"status": "PENDING"
}
Response: 200
{
"message": "Incident report status updated successfully.",
"incidentReportId": "12345",
"newStatus": "RESOLVED"
}
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/incident-reports/{id}/toggle-status \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!